package com.bestv.search.spider.douban.dao;

import com.bestv.search.spider.dao.GenericDao;
import com.bestv.search.spider.douban.model.DouBanVideoBaseInfo;

import java.util.Date;
import java.util.List;

public interface DouBanVideoBaseInfoDao extends GenericDao<DouBanVideoBaseInfo, Long> {

    List<DouBanVideoBaseInfo> getUnSyncedInfo();

    List<DouBanVideoBaseInfo> getValidInfos();

    List<DouBanVideoBaseInfo> getValidInfoBySyncReviewsTime(Date date);

    boolean existBaseInfo(DouBanVideoBaseInfo info);

    boolean existDouBanInfo(DouBanVideoBaseInfo info);

    void saveDouBanVideoInfo(DouBanVideoBaseInfo info);

    void updateDouBanVideoInfo(DouBanVideoBaseInfo info);
}
